<include file="public:header" />
<form action="{:u('links_city/edit')}" method="post" name="myform" id="myform" style="margin-top:10px;">
  <div class="pad-10">
    <div class="col-tab">
      <ul class="tabBut cu-li">
        <li id="tab_setting_1">基本信息</li>
      </ul>
      <div id="div_setting_1" class="contentList pad-10">
        <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
          <tr> 
            <th width="100">城市名称 :</th>
            <td><input type="text" name="name" id="name" value="{$city_info.name}" class="input-text"></td>
            <th align="left">例如：济南</th>
          </tr>
          <tr>
          	<th>城市全拼 :</th>
            <td>
            	<input type="text" name="pin" id="pinyin"  value="{$city_info.pin}" class="input-text">
            <th align="left">例如：jinan 全为小写</th>
            </td>
          </tr>          
          <tr>
            <th width="100">城市简拼 :</th>
            <td><input type="text" name="pre_letter" id="pre_letter" value="{$city_info.pre_letter}" class="input-text"></td>
            <th align="left">例如：JN 首字母大写</th>
          </tr>
          
        </table>
      </div>
      <div class="bk15"><input type="hidden" name="id" class="input-text" value="{$city_info.id}"></div>
      <div class="btn"><input type="submit" value="{$Think.lang.submit}" onclick="return submitFrom();" name="dosubmit" class="button" id="dosubmit"></div>
    </div>
  </div>
</form>
<script type="text/javascript">
        function submitFrom(){
                //检查城市填写信息
                if($("#name").val()==0 || $("#pre_letter").val()==0 || $("#pinyin").val()==0)
                {
                        alert('请认真填写城市信息');
                        return false;
                }
        }
</script>
</body></html>